<html>
<script type="text/javascript">
function f_check_number(obj)  
{         
	var a = parseInt(obj); 
    if (/^\d+$/.test(obj))
    //if(/[\d+.]/ig.test(obj))      
    {  
        alert("ass");
       return true;  
    }   
    else   
    {  
       alert(obj,"aa");  
       return false;  
    }  
}  

function a(){
	alert("begin");

	var desc = document.getElementById("description").value;

	alert(desc);
}
</script>
<body>
<h2>Hello World!</h2>
<input name="text" type="text"/><input type="button" onclick="f_check_number('22')"/>
<a href="webapp/WEB-INF/test/index.jsp">XXXXXXX</a>

<textarea id="description"></textarea>

<input type="button" value="asd" onclick="a()"/>

</body>
</html>
